package com.ruoyi.web.exams.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.web.exams.domain.ExamQuestion;
import org.apache.ibatis.annotations.Mapper;

/**
 * 题Mapper接口
 *
 * @author 范书铭
 * @date 2024-10-02
 */
@Mapper
public interface ExamQuestionMapper extends BaseMapper<ExamQuestion> {
    /**
     * 查询题
     *
     * @param id 题主键
     * @return 题
     */
    public ExamQuestion selectExamQuestionById(Long id);

    /**
     * 查询题列表
     *
     * @param examQuestion 题
     * @return 题集合
     */
    public List<ExamQuestion> selectExamQuestionList(ExamQuestion examQuestion);

    /**
     * 新增题
     *
     * @param examQuestion 题
     * @return 结果
     */
    public int insertExamQuestion(ExamQuestion examQuestion);

    /**
     * 修改题
     *
     * @param examQuestion 题
     * @return 结果
     */
    public int updateExamQuestion(ExamQuestion examQuestion);

    /**
     * 删除题
     *
     * @param id 题主键
     * @return 结果
     */
    public int deleteExamQuestionById(Long id);

    /**
     * 批量删除题
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteExamQuestionByIds(Long[] ids);

    List<ExamQuestion> queryPagerQuestions(Long pagerId);
}